<template>
  <div>
    <main>
      <div class="leftimg">
        <img src="@/assets/imgs/nvhai.png" alt="" />
      </div>
      <div class="right">
        <form class="logo">
          <p>LOGO后台管理系统</p>
          <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="员工账号" name="first">
              <input type="text" placeholder="请输入用户名" />
              <input type="text" placeholder="密码" />
              <input type="button" value="登录" class="sub" @click="tohome" />
              <div class="bottom">
                <a href="">短信验证码登录</a>
                <a href="" class="zhuc">立即注册</a>
                <a href="">忘记密码</a>
              </div>
            </el-tab-pane>
            <el-tab-pane label="企业账号" name="second"></el-tab-pane>
          </el-tabs>
          <div class="mao">
            <img src="@/assets/imgs/maomi.png" alt="" />
          </div>
        </form>
        <div class="hudie">
          <img src="@/assets/imgs/xhd.png" alt="" />
        </div>
        <div class="dahudie">
          <img src="@/assets/imgs/dhd.png" alt="" />
        </div>
      </div>
    </main>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from "vue";
import { useRouter } from "vue-router";
export default defineComponent({
  setup() {
    const activeName = ref("first");
    const router = useRouter();
    const tohome = () => {
      router.push({ path: "/home" });
    };
    return { activeName, tohome };
  },
});
</script>

<style lang="less" scoped>
main {
  background: rgb(7, 224, 240);
  display: flex;
}
.leftimg {
  width: 50%;
  height: 720px;
  img {
    width: 100%;
    height: 100%;
  }
}
.right {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 720px;
  position: relative;
  .logo {
    width: 409px;
    height: 447px;
    background: #ffffff;
    border-radius: 27px;
    padding: 29px 32px;
    position: relative;
    p {
      width: 206px;
      height: 22px;
      font-size: 23px;
      font-family: Arial;
      font-weight: bold;
      color: #446ce3;
      line-height: 24px;
      margin-bottom: 37px;
    }
    /deep/ .el-tabs__nav {
      display: flex;
      width: 100%;
      height: 50px;
    }
    /deep/ .el-tabs__item {
      display: flex;
      flex: 1;
      font-size: 17px;
      font-family: PingFang SC;
      font-weight: bold;
      color: #446ce3;
      justify-content: center;
    }
    input {
      width: 100%;
      height: 40px;
      background: #eeeeee;
      border: 1px solid #446ce3;
      border-radius: 7px;
      margin-top: 20px;
      padding: 0 20px;
    }
    input::placeholder {
      font-size: 16px;
      font-family: PingFang SC;
      font-weight: 400;
      color: #7b8a95;
    }
    .sub {
      height: 47px;
      background: #446ce3;
      border-radius: 7px;
      font-size: 17px;
      font-family: MicrosoftYaHei;
      font-weight: bold;
      color: #ffffff;
      margin-bottom: 84px;
    }
    .bottom {
      display: flex;
      justify-content: space-between;
      width: 100%;
      a {
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 400;
        color: #446ce3;
      }
      .zhuc {
        margin-left: 116px;
      }
    }
    .mao {
      width: 107px;
      height: 133px;
      position: absolute;
      top: -57px;
      left: -24px;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
  .hudie {
    width: 189px;
    height: 82px;
    position: absolute;
    top: 41px;
    left: 67px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .dahudie {
    width: 187px;
    height: 193px;
    position: absolute;
    bottom: 0;
    right: 0;
    img {
      width: 100%;
      height: 100%;
    }
  }
}
</style>
